libxl, xl: exec xenconsole in current process, defer decision to fork to caller
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 14 Jul 2010 15:40:33 +0000 (16:40 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 14 Jul 2010 15:40:33 +0000 (16:40 +0100)
commitadb8dd84403917b268556c1c80e81f1b4fcdf7a1
tree44c18a0cc5baed52b26ec417d4db0106dc059185
parentdf9760236b5a55be6d14c09a4b080df34bfe80c4
libxl, xl: exec xenconsole in current process, defer decision to fork to caller

Use this to run xenconsole as the foreground process and move the
connection to the console in the "create -c" case early enough to be
able to view output from the bootloader. This behaviour is consistent
with how both "xm console" and "xm create -c" operate.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl_cmdimpl.c